package atm.service;

import atm.pojo.UserDO;

/**
 * 业务层
 */
public interface UserService {
    UserDO getByUserAccountAndPassword(String userAccount, String password);

    void saveMoney(int id, double balance);

    void takeMoney(int id, double balance) throws Exception;

    void changePassword(String oldPwd, String newPwd, int id) throws Exception;

    void transfer(String otherName, double blance, int id)throws Exception;

}
